import { Component } from 'react'
export function WrapWithAgeData(Compon, age) {
	class ProcessedComponent extends Component {
		componentDidMount() {
			console.log('ProcessedComponent挂载成功age')
		}
		UNSAFE_componentWillMount() {
			console.log('ProcessedComponent即将挂载成功age')
		}
		render() {
			return <Compon age={age} {...this.props}></Compon>
		}
	}
	return ProcessedComponent
}
